<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>53.私有属性</title>
</head>
<body>
<script>
  class Girl {
    name
    #age
    constructor(name,age) {
      this.name = name
      this.#age = age
    }
    introduce(){
        console.log(this.name+this.#age)
    }
  }

  let g1 = new Girl('xi',18)
  console.log(g1.name)
  // console.log(g1.#age)
  g1.introduce()
</script>
</body>
</html>